// const fs = require('fs')

import { createReadStream } from 'fs'

let data = ''


let readStream = createReadStream('./txt/three_readstream.txt')

readStream.setEncoding('UTF8');

readStream.on('data',chunk=>{
	data += chunk
	console.log('1231110002772')
})	

readStream.on('end',()=>{
	// console.log(data)
	console.log('end')
})

readStream.on('error',(err)=>{
	console.log(err.stack)
})

console.log('同步程序顺序执行完毕')